package org.misty.scalafx.first

import scala.compat.Platform.currentTime
import scalafx.Includes._
import scalafx.application.JFXApp
import scalafx.application.JFXApp.PrimaryStage
import scalafx.scene.Scene
import scalafx.scene.control.Label
import scalafx.scene.layout.StackPane


/**
 * Created by Misty on 2015/6/9.
 */
object FXApp extends JFXApp {
    stage = new PrimaryStage {
        title.value = "ScalaFX Application"
        width = 400
        height = 300
        scene = new Scene {
            root = new StackPane {
                children = new Label("Loading")
            }
        }

        onShown = () => {
            println(currentTime - Launcher.start)
        }
    }

}
